package com.xongxong.admin.controller.user;


import com.xongxong.admin.domain.po.User;
import com.xongxong.admin.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.xml.ws.Action;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author dxx
 * @since 2024-10-15
 */
@CrossOrigin("*")
@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    IUserService userService;
    @GetMapping("/list")
    public List<User> list(){
        return userService.list();
    }



}
